package com.wust.supermarket.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wust.supermarket.domain.Staff;


public interface StaffService {
	//查询所有员工
    List<Staff> listAllStaffs();

    //通过ID查询员工
    Staff getStaffById(int staffId);

    //插入员工
    int insertStaff(Staff staff);

    //通过用户名和密码查询员工
    Staff getStaffByName(String staﬀUsername,String staﬀPassword);
    
    //修改员工信息
    int updateStaff(Staff staff);

    //删除员工
    int deleteStaff(int staffId);

    //获取员工总数
    int getStaffNum();
	 
}
